package com.whatever;

import android.app.Activity;
import android.os.Bundle;
import android.widget.*;

public class New_AppActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        TextView textView = new TextView(this);
        Button button1 = new Button(this);
        Button button2 = new Button(this);
        ToggleButton button3 = new ToggleButton(this);
        EditText editText = new EditText(this);
        RatingBar ratingBar = new RatingBar(this);
        LinearLayout layout0 = (LinearLayout)findViewById(R.id.ChocolateRain);
        LinearLayout layout1 = (LinearLayout)findViewById(R.id.linearLayout1);
        LinearLayout layout2 = (LinearLayout)findViewById(R.id.linearLayout2);
        LinearLayout layout3 = (LinearLayout)findViewById(R.id.linearLayout3);
        
        textView.setText("Hello, World!");
        button1.setText("Button1");
        button2.setText("Button2");
        ratingBar.setNumStars(4);
        ratingBar.setRating((float) 3.5);
        
        layout1.addView(textView);
        layout1.addView(editText);
        layout2.addView(button1);
        layout2.addView(button2);
        layout2.addView(button3);
        layout3.addView(ratingBar);
    }
}